package com.combining.d_factory.impl;

import com.combining.d_factory.face.AbstractDuckFactory;
import com.combining.d_factory.face.Quackable;

/**
 * 计数鸭子工厂
 * 
 * @author dell
 * 
 */
public class CountingDuckFactory extends AbstractDuckFactory {

	public Quackable createMallardDuck() {
		return new QuackCounter(new MallardDuck());
	}

	public Quackable createRedheadDuck() {
		return new QuackCounter(new RedheadDuck());
	}

	public Quackable createDuckCall() {
		return new QuackCounter(new DuckCall());
	}

	public Quackable createRubberDuck() {
		return new QuackCounter(new RubberDuck());
	}
}
